package com.tgy.myredis.service;


import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.stereotype.Service;

/***
 * @ClassName: CornService
 * @Description:
 * @Auther: tanggy3
 * @Date: 14:18 2022/10/18
 * @version : V1.0
 */
public interface CornService {
    void handleFunction();

    //void configureTasks(ScheduledTaskRegistrar taskRegistrar)

    void lock(String name);

    void setTime(String cron);

    String getCron();
}
